Skip to content

Effects Core: make removeClass work correctly with changes jQuery 1.9.0....#895

Merged
petersendidit merged 1 commit intojquery:masterfrom
petersendidit:removeClass_9015
Jan 29, 2013
Merged

Effects Core: make removeClass work correctly with changes jQuery 1.9.0....#895
petersendidit merged 1 commit intojquery:masterfrom
petersendidit:removeClass_9015

Conversation

@petersendidit
Copy link
Member

... Fixed #9015 - Inclusion of jQuery UI breaks removeClass

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about this for the entire body... not as clear?:

    return arguments.length > 1 ?
        $.effects.animateClass.call( this,
            { remove: classNames }, speed, easing, callback ) :
        this._removeClass.apply( this, arguments );

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am good either way. Will one uglify and gzip better?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably wont make much difference.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with my approach. One less conditional, and more future proof.

….0. Fixed #9015 - Inclusion of jQuery UI breaks removeClass
@petersendidit petersendidit merged commit 2ca4d17 into jquery:master Jan 29, 2013
@petersendidit petersendidit deleted the removeClass_9015 branch January 29, 2013 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants